<%if @message %>
<table width="495" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="medgray" width=60><strong>发件人：</strong></td>
		<td class="medblack" width=5>&nbsp;</td>
		<td class="medblack" width=330><%unless @message.torf-%> <%=h(@message.Owner.name)%>
		<%else-%> <% if @message.Torfer.anonymous %> <%= link_to "匿名用户", :controller=>"view", :action=>"viewuser", :id=>@message.torf_id %>
		<% else %> <%= link_to h(@message.Torfer.name), :controller=>"view", :action=>"viewuser", :id=>@message.torf_id %>
		<% end %> <%end-%>&nbsp;(<%=@message.created_time.strftime("%y年%m月%d日-%H:%M") %>)</td>
		<td width=100></td>
	</tr>
	<tr>
		<td colspan="4" height=5></td>
	</tr>
	<tr>
		<td class="medgray"><strong>收件人：</strong></td>
		<td class="medblack">&nbsp;</td>
		<td class="medblack"><%if @message.torf-%><%=h(@message.Owner.name)%>
		<%else-%><% if @message.Torfer.anonymous %> <%= link_to "匿名用户", :controller=>"view", :action=>"viewuser", :id=>@message.torf_id %>
		<% else %> <%= link_to h(@message.Torfer.name), :controller=>"view", :action=>"viewuser", :id=>@message.torf_id %>
		<% end %> <%end-%></td>
		<td></td>
	</tr>
	<tr>
		<td class="lantou" colspan=4 height=30>&nbsp;</td>
	</tr>
	<tr>
		<td class="medblack" colspan=4><%=textilize(auto_link(@message.body))%></td>
	</tr>
	<tr valign="center">
		<td class="medblack" colspan=3 height=20 align="right"><span
			id='indicator' style="display:none"><%=image_tag("/images/progress.gif")%></span>&nbsp;</td>
		<td class="medgray" width="100" align="right"><%= link_to_remote "写消息", :url=>{:controller=>"view", :action=>"showmessage", :id=>@message.torf_id},:loading => "Element.show('indicator')",:complete => "Element.hide('indicator')",:update=>"message" %>
		&nbsp;|&nbsp; <a href="#" onclick="history.go(-1)">返&nbsp;回</a></td>
	</tr>
</table>
</br>
</br>
<div id="message"></div>
<% else %>
<%= render :partial=>"index/null"%>
<% end %>
